package com.gzcstec.order.enums;

import lombok.Getter;

@Getter
public enum  ExceptionCodeEnums {
    PARAM_ERROR(4001 , "参数错误"),
    CART_ERROR(4002,"购物车数据有误"),
    PRODUCT_STOCK_EMPTY(4003,"商品库存不足"),
    ORDER_MASTER_NOT_EXIST(5001 , "主订单不存在"),
    ORDER_STATUS_ERROR(5002 , "订单状态错误"),
    ORDER_DETAIL_EMPTY(5003 , "订单详情为空")
    ;

    private Integer code;
    private String message;

    private ExceptionCodeEnums(Integer code , String message) {
        this.code = code;
        this.message = message;
    }
}
